{{extend 'layout.html'}}
{{left_sidebar_enabled=right_sidebar_enabled=False}}

<script src="{{=URL('static','js/ui/jquery.ui.core.js')}}"></script>
<script src="{{=URL('static','js/ui/jquery.ui.widget.js')}}"></script>
<script src="{{=URL('static','js/ui/jquery.ui.tabs.js')}}"></script>
<script src="{{=URL('static','cluetip/jquery.cluetip.js')}}"></script>
<link rel="stylesheet" href={{=URL('static','js/themes/base/jquery.ui.all.css')}} /> 
<link rel="stylesheet" href={{=URL('static','cluetip/jquery.cluetip.css')}} /> 
 
<style type="text/css"> 
table, tr{text-align:center;width:100%;}
td{text-align:left;}
tr.tr_grades td{text-align:center;}
table.subjects, td.subjects {text-align:center; border: 1px solid black;}
.elig{font-weight:bold;color:#00A000;}
.inelig{font-weight:bold;color:#A00000;}
.require{font-weight:bold;color:#0000A0;}
.semester th{text-align:left;}
.my_grade input{text-align:center}
tr.strike,tr.strike td {
    //background-color: #E8E8E8;
    //color: #E8E8E8;
    color: #bbb;
}
</style> 
<script>

function compute_gwa(){
$units = 0;
$sum = 0;

$count = 0;
$total = 0;
$total_units = 0

   if($('.semester')){       
       $('.semester').each(function(index) {
          $units = 0;
          $sum = 0;
          $(this).siblings().each(function(index){
             $grades = $(this);
             $start = 1;
             
             if ($grades[0].children[2].innerHTML.indexOf('(') != -1) {
                 return 1;          
             }
             $td = $(this).first().children().first().children() 

             if($td.is(':checkbox:not(:checked)')) {
                return 1;
             }

             if ($grades[0].children[3].innerHTML.length != 0){
                if(!isNaN($grades[0].children[3].innerHTML)){
                    $total += $grades[0].children[2].innerHTML * $grades[0].children[3].innerHTML
                    $sum += $grades[0].children[2].innerHTML * $grades[0].children[3].innerHTML
                    $units += parseFloat($grades[0].children[2].innerHTML);                                                    
                    $total_units += parseFloat($grades[0].children[2].innerHTML);                                 
                }    
                else if($grades[0].children[3].innerHTML.indexOf('INC') != -1 || $grades[0].children[3].innerHTML.indexOf('4.00') != -1){                
        
                    if($grades[0].children[3].innerHTML.indexOf('P') != - 1 || $grades[0].children[3].innerHTML.indexOf('F') != - 1) return 1;

                    $start = $grades[0].children[3].innerHTML.indexOf('(') + 1
                    $end = $grades[0].children[3].innerHTML.indexOf(')')
                    if($start != 0) {
                        $grade = $grades[0].children[3].innerHTML.substring($start,$end)
                        $total += $grades[0].children[2].innerHTML * $grades[0].children[3].innerHTML.substring($start,$end)
                        $sum += $grades[0].children[2].innerHTML * $grades[0].children[3].innerHTML.substring($start,$end)
                        $units += parseFloat($grades[0].children[2].innerHTML);                                                    
                        $total_units += parseFloat($grades[0].children[2].innerHTML);                                                         
                    }
                } 
             } 
        })        
        
        if($units != 0){

           $gwa = Math.round($sum/$units * 1000)/1000
           $gwa= $gwa.toFixed(3)
           if($(this).parent().children().hasClass('tr_gwa')){
               $(this).parent().children().last().remove();
           }
           $(this).parent().append('<tr class="tr_grades tr_gwa"><td><td/><td><label>Total:</label> '+$units+' units</td><td><label>'+$gwa+'</label></td></tr>')
           
         }
   })
      
   $total_gwa = Math.round($total/$total_units * 1000)/1000
   $total_gwa = $total_gwa.toFixed(3)

   $('.total_gwa').html('<p>GWA: <label>'+$total_gwa +'</label></p>')
   $('.total_units').html('<p>Total: <label>'+$total_units+'</label> units</p>')
   if($total_gwa <= 1.20) $('.congrats').html('<b>Summa cum laude: Congrats! Astig</b>');
   else if($total_gwa <= 1.45)$('.congrats').html('<b>Magna cum laude: Congrats! Astig</b>');
   else if($total_gwa <= 1.75)$('.congrats').html('<b>Cum laude: Congrats! Astig</b>');
   else $('.congrats').html('');

   if($total_gwa > 1.20){
      grade = Math.ceil(($total - 1.2*$total_units)/0.2);
      $('.summa').html('You need to ace ' + grade +' units to become a <i>summa cum laude</i>.');  
   } else $('.summa').html('');
 
   if ($total_gwa > 1.45){ 
      grade = Math.ceil(($total - 1.45*$total_units)/0.45);
      $('.magna').html('You need to ace ' + grade +' units to become a <i>magna cum laude</i>.');
   } else {$('.magna').html('')}
   
   if ($total_gwa > 1.75){ 
      grade = Math.ceil(($total - 1.75*$total_units)/0.75);
      $('.cum').html('You need to ace ' + grade +' units to become a <i>cum laude</i>.');
   } else {$('.cum').html('');}
   }
}

$(function(){
if($('.semester')){

    $('#no_table_course').change(function(){
           $.ajax({
                url: 'iskotool/default/get_years',
                dataType: 'json',
                data: "course=" + $("#no_table_course option:selected").text(),
                success: function(data) {
                    $('#no_table_curriculum').html('')
                    var options = '<option value="Autodetect curriculum">Autodetect curriculum</option>';
                    for (var i = 0; i < data.length; i++) {
                        options += '<option value="' + data[i] + '">' + data[i] + '</option>';
                    }                   
                    $('#no_table_curriculum').html(options)                     
                }
            });
    })
       
    $('#no_table_course').keyup(function(){ $(this).change();})

    compute_gwa();
    $(":checkbox").live('click', function(){
        $(this).parent().parent().toggleClass('strike');
        compute_gwa();
    })
    
    $('.my_grade').click(function(){
        if($(this).has(':input').length == 0){
               $(this).hide()
               $(this).next().show()
               $(this).next().children().first().focus()   
        }else{
               $(this).hide()
               $(this).prev().show()
        }
    })
    
    $('.my_grade :input').blur(function(){
        var grade = parseFloat($(this).val())
        $(this).parent().hide()
        $(this).parent().prev().show()
        
        if (!isNaN(grade)) $(this).parent().prev().text(grade.toFixed(2))
        else $(this).parent().prev().text($(this).val())
        compute_gwa();               
    })

    $('.my_grade :input').keydown(function(e){
    
        var TABKEY = 9;
        var UP = 38;
        var DOWN = 40;
                  
        var grade = parseFloat($(this).val())
               
        if (!isNaN(grade)) $(this).parent().prev().text(grade.toFixed(2))
        else $(this).parent().prev().text($(this).val())
        compute_gwa();               

        $index = $('.my_grade :input').index($(this))

        if(e.keyCode == TABKEY) {
            $(this).click() 

            e.preventDefault();

            if(e.shiftKey){
                if($index == 0) {
                    $('.my_grade').not(':has(:input)').last().click()
                    $(this).click() 
                    return
                }        
                $($('.my_grade :input')[$index - 1]).parent().prev().click()
            
            } else {
                if($('.my_grade :input').last()[0] == this) {
                    $('.my_grade').first().click()
                    $(this).click() 
                    return
                }
                $($('.my_grade :input')[$index + 1]).parent().prev().click()
            }
        } else if(e.keyCode == UP) {
            $(this).click()
            if($index == 0) {
                $('.my_grade').not(':has(:input)').last().click()
                $(this).click() 
                return
            }        
            $($('.my_grade :input')[$index - 1]).parent().prev().click()
        } else if(e.keyCode == DOWN) {
            $(this).click()        
            if($('.my_grade :input').last()[0] == this) {
                $('.my_grade').first().click()
                $(this).click() 
                return
            }        
            $($('.my_grade :input')[$index + 1]).parent().prev().click()    
        }
    })
    
    $('td.ge').cluetip({
        splitTitle: '|',
        width: 350,
        cursor: 'pointer',
        arrows: 'true',
        cluetipClass: 'jtip rounded',
        fx: {
            open:       'show', // can be 'show' or 'slideDown' or 'fadeIn'
            openSpeed:  ''        
        },
    })
    
    $('.search').parent().hover(
        function(){ $(this).children().last().show();},
        function(){ $(this).children().last().hide();}
    )
    
}
})
</script>

Another GWA Calculator + EEE Online Advising + GE Lister v1.25 <br/>
<br/>
<button onclick="jQuery('#courses').slideToggle()">Click me for the supported courses.</button>
<div id='courses' class='hidden'>
+ 2004+ MetE and EM Online Advising  <i>(Experimental)</i> <br/>
+ 2005+ and 2010+ GE Online Advising  <i>(Experimental)</i> <br/>
+ 2004+ ME Online Advising  <i>(Experimental)</i> <br/>
+ 2006+ CS Online Advising  <i>(Experimental)</i> <br/>
+ 2008+ CE Online Advising  <i>(Experimental)</i> <br/>
+ 2004+ IE Online Advising  <i>(Experimental)</i> <br/>
+ 2009+ ChE Online Advising <i>(Experimental)</i> <br/>
+ 2002+ Arch and L  Arch Online Advising <i>(Experimental)</i> <br/>
+ 2002+ MBB Online Advising <i>(Experimental and Incomplete)</i> <br/>
+ BAA Online Advising (Initially set to 2007)<i>(Experimental and Incomplete)</i> <br/>
+ [BAA,BA] could someone verify the oldest batch that uses these curricula: {{=A('here', _href='http://www.upd.edu.ph/~cba/acad_ugBSBA.htm')}} and {{=A('here', _href='http://www.upd.edu.ph/~cba/acad_ugBSBAA.htm')}}. Thanks. <br/>
+ coming soon! if you want us to support your course, provide a link of the complete syllabus in the Feedback Section.
</div> 
<br/>
<br/>
<button onclick="jQuery('#instruction').slideToggle()">Click me for the instructions.</button>
<div id='instruction' class='hidden'>
<h2>Instructions:</h2><sup>[patterned from {{=A('this', _href='http://www.upprogrammingguild.org/gwacalc.php')}}]</sup><br/>
<h4>Option 1</h4>
<i>Verified not to work in Internet Explorer</i>
<ol>
<li>Go to {{=A('https://crs.upd.edu.ph/viewgrades', _href='https://crs.upd.edu.ph/viewgrades')}}.</li>
<li>Press ctrl+A (or equivalent) to select all text on the page.</li>
<li>Press ctrl+C (or equivalent) to copy all text.</li>
<li>Paste it in the text area.</li>
<li>Click "Submit" and wait for the page to load.</li>
<li>If it didn't work the first time, try again.</li>
<li>If it still didn't work, fill up the comment box in the Feedback section  and copy all the text of the grades in the Comment field.<br/>
I'll try to figure out what happened. :)
</li>
</ol>
<br/>
<h4>Option 2</h4>
<ol>
<li>Bookmark {{=A('Iskotool', _href= "javascript:if(String(window.location).substr(0,33)=='https://crs.upd.edu.ph/viewgrades')$.getScript('http://bbs.eee.upd.edu.ph/iskotool/static/js/bookmark.js');else alert('You must be at https://crs.upd.edu.ph/viewgrades to use this.');")}}. You can drag the link and drop it in the Bookmark toolbar.</li>
<li>Go to {{=A('https://crs.upd.edu.ph/viewgrades', _href='https://crs.upd.edu.ph/viewgrades')}}.</li>
<li>Click the bookmark you made.</li>
</ol>
<br/>
<h4>Option 3</h4>
<ol>
<li>Go to {{=A('https://crs.upd.edu.ph/viewgrades', _href='https://crs.upd.edu.ph/viewgrades')}}.</li>
<li>Paste the following in your address bar:</li> {{=TEXTAREA("javascript:if(String(window.location).substr(0,33)=='https://crs.upd.edu.ph/viewgrades')$.getScript('http://bbs.eee.upd.edu.ph/iskotool/static/js/bookmark.js');else alert('You must be at https://crs.upd.edu.ph/viewgrades to use this.');", _cols=20, _rows=5, _wrap='hard', _readonly='true' )}}
</ol>
<br/>
</div>
<br/>
<br/>
{{=form}}
{{if info is not None:}}

{{if info != 'Error':}}
<table>
<tr><th colspan=2><h2>Student Information</h2></th><tr>
  <tr><td><label>Name</label></td><td>{{=info['name']}}</td></tr>
  <tr><td><label>Student Number</label></td><td>{{=info['studno']}}</td></tr>
  <tr><td><label>Major</label></td><td>{{=info['course']}}</td></tr>
</table>
<br/>
<br/>
<div id="tabs">
  <ul>
  <li><a href="#tabs-1">GWA</a></li>
  <li><a href="#tabs-2">Online Advising</a></li>
  <li><a href="#tabs-3">Non-Major Subjects</a></li>
  <li><a href="#tabs-4">Available GEs</a></li>        
  </ul>
  <div id="tabs-1">
     Click the grades to edit.
     <br/>
     <br/>
     <div class='congrats'></div>
     <div class='summa'></div>
     <div class='magna'></div>
     <div class='cum'></div> 
     <br/>
     <div class='total_gwa'></div>
     <div class='total_units'></div>
     
     <table>
        <tr><td>
           <table>
              <tr><td>
              <table id='grades'>
                 {{for sem in mygrades:}}
                    <tr><td><hr/><table>  
                    {{=TR(TH(sem['sem'], _colspan=3), _class='semester')}}  
                    {{for subject in sem['subject']:}}
                       {{=TR(TD(INPUT(_type='checkbox', value='on')),TD(subject['subject'],_width='30%'),                             
                                   TD(subject['unit'],_width='30%'),TD(subject['grade'],_width='40%', _class='my_grade'), TD( INPUT( _value=subject['grade']), _class='my_grade hidden'), _class='tr_grades')}}
                       {{pass}}
                    </table></td></tr>
                 {{pass}}
              </table>
              </td></tr>
           </table>
        </td></tr>
     </table>
     <br/>
     <div class='total_gwa'></div>
     <div class='total_units'></div>
     <div class='congrats'></div>
     <div class='summa'></div>
     <div class='magna'></div>
     <div class='cum'></div> 
  </div>
  <div id="tabs-2">
     {{if type(mysubjects) != str:}}        
     <table>
        <br/>
        <h4>The {{=year}} {{=course}} curriculum is used.</h4><br/>
        <tr><td>
           <tr>
              <th>Subjects Eligible</th>
              <th>Subjects Not Eligible</th>
              <th>Senior/Thesis/Others</th>
           </tr>
        </td></tr>
        <tr><td>
           <tr>
              <td>
                 <table class='subjects'>
                    <tr>
                       <th>Subject</th>
                       <th>Corequisites</th>
                    </tr>
                    {{if len(mysubjects['elig']) != 0:}}
                       {{for subject in mysubjects['elig']:}}
                          {{=TR(TD(subject['subject'], _class='subjects elig'), TD(subject['coreq'], _class='subjects'))}}    
                       {{pass}}
                    {{else:}}
                       {{=TR(TD(I('You have no majors to take.'), _colspan=3))}}
                    {{pass}}
                 </table>
                 * subjects with no grade not considered
              </td>
              <td>   
                 <table class='subjects'>
                    <tr>
                       <th>Subject</th>
                       <th>Prerequisites</th>
                       <th>Corequisites</th>
                    </tr>
                    {{if len(mysubjects['non_elig']) != 0:}}                                
                       {{for subject in mysubjects['non_elig']:}}
                          {{=TR(TD(subject['subject'], _class='subjects inelig'), TD(subject['prereq'], _class='subjects'), TD(subject['coreq'], _class='subjects'))}}                 
                       {{pass}}
                    {{else:}}
                       {{=TR(TD(I('You have no majors with unmet prerequisites.'), _colspan=3))}}
                    {{pass}}              
                 </table>
              </td>
              <td>                        
                 <table class='subjects'>
                    <tr>
                       <th>Subject</th>
                       <th>Requirements</th>
                    </tr>
                    {{if len(mysubjects['senior']) != 0:}}                                          
                       {{for subject in mysubjects['senior']:}}
                          {{=TR(TD(subject['subject'], _class='subjects require'), TD(subject['requirements'], _class='subjects'))}}    
                       {{pass}}    
                    {{else:}}
                       {{=TR(TD(I('You have no senior subjects to take.'), _colspan=3))}}
                    {{pass}}                    
                 </table>
               </td>
            </tr>                                        
         </td>
       </tr>   
     </table>
    <br/> 
    {{if c_notes:}}
    <i>Notes:</i>
    {{=TAG(c_notes.note)}}
    {{pass}}     
     {{else:}}
        {{if 'too old' in mysubjects:}}{{=I('Sorry, you are too old for this.')}}
        {{elif 'not BS' in mysubjects:}}{{=I('Sorry, have you tried setting your course to BS?')}}
        {{else:}}{{=I('Sorry, the curriculum you specified is not yet supported.')}}
        {{pass}}
     {{pass}}
  </div>
  <div id='tabs-3'>
     {{if type(mysubjects) != str:}}        
  
     See note below.    
     <table>
        <tr>
           <td><tr>
              <th>Arts and Humanities</th>
              <th>Social Sciences and Philosophy</th>
              <th>Math, Science and Technology</th>
           </tr></td>
        </tr>
        <tr>
           <td>
              <tr>
                 <td>
                    <table>
                       <tr>
                          <th>Subject</th>
                          <th>Semester Taken</th>
                       </tr>
                       {{for ge in ges['ah']:}}
                          {{=TR(TD(ge['subject'], _class='subjects ge', _title=ge['subject']+': '+ge['title']+'|'+ge['description']), TD(ge['sem'], _class='subjects'))}}    
                       {{pass}}                                
                    </table>
                    * you need at least 15 units
                 </td>
                 <td>   
                    <table>
                       <tr>
                          <th>Subject</th>
                          <th>Semester Taken</th>
                       </tr>
                       {{for ge in ges['ssp']:}}
                          {{=TR(TD(ge['subject'], _class='subjects ge', _title=ge['subject']+': '+ge['title']+'|'+ge['description']), TD(ge['sem'], _class='subjects'))}}    
                       {{pass}}                                
                    </table>
                    * you need at least 15 units                            
                 </td>
                 <td>                        
                    <table>
                       <tr>
                          <th>Subject</th>
                          <th>Semester Taken</th>
                       </tr>
                       {{for ge in ges['mst']:}}
                          {{=TR(TD(ge['subject'], _class='subjects ge', _title=ge['subject']+': '+ge['title']+'|'+ge['description']), TD(ge['sem'], _class='subjects'))}}    
                       {{pass}}
                    </table>
                    * if EEE, you need at least 9 units
                 </td>
              </tr>                                        
           </td>
        </tr>            
        <tr><td colspan=3><hr/></td></tr>            
        <tr>
           <td>
              <tr>
                 <th>Philippine Studies</th>
                 <th>Physical Education</th>
                 <th>CWTS</th>
              <tr>
           </td>
        </tr>
        <tr>
           <td>
              <tr>
                 <td>
                    <table>
                       <tr>
                          <th>Subject</th>
                          <th>Semester Taken</th>
                       </tr>
                       {{for ge in ges['phil_stud']:}}
                          {{=TR(TD(ge['subject'], _class='subjects'), TD(ge['sem'], _class='subjects'))}}    
                       {{pass}}
                   </table>
                   * you need at least 6 units                            
                </td>
                <td>
                   <table>
                      <tr>
                         <th>Subject</th>
                         <th>Semester Taken</th>
                      </tr>
                      {{for pe in pes:}}
                         {{=TR(TD(pe['subject'], _class='subjects'), TD(pe['sem'], _class='subjects'))}}    
                      {{pass}}
                   </table>
                   * you need at least 4 PEs
                </td>
                <td>   
                   <table>
                      <tr>
                         <th>Subject</th>
                         <th>Semester Taken</th>
                      </tr>
                      {{for cwt in cwts:}}
                         {{=TR(TD(cwt['subject'], _class='subjects'), TD(cwt['sem'], _class='subjects'))}}    
                      {{pass}}
                   </table>
                </td>
             </tr>                                        
          </td>                
       </tr>
       <tr><td colspan=3><hr/></td></tr>                            
       <tr>
          <td>
             <tr>
                <th>English Communication</th>
                <th>Electives/Others</th>
             </tr>
          </td>
       </tr>
       <tr>
          <td>
             <tr>
                <td>
                   <table>
                      <tr>
                         <th>Subject</th>
                         <th>Semester Taken</th>
                      </tr>
                      {{for ge in ges['english']:}}
                         {{=TR(TD(ge['subject'], _class='subjects'), TD(ge['sem'], _class='subjects'))}}    
                      {{pass}}
                   </table>
                   * you need at least 9 units                            
                </td>
                <td>
                   <table>
                      <tr>
                         <th>Subject</th>
                         <th>Semester Taken</th>
                      </tr>
                      {{for ge in ges['others']:}}
                         {{=TR(TD(ge['subject'], _class='subjects'), TD(ge['sem'], _class='subjects'))}}    
                      {{pass}}
                   </table>
                </td>
             </tr>                                        
          </td>                
       </tr>            
    </table>
    <br/>
    {{if notes:}}
    <i>Notes:</i>
    {{=TAG(notes.note)}}
    {{pass}}
    {{else:}}
        {{if 'too old' in mysubjects:}}{{=I('Sorry, you are too old for this.')}}
        {{elif 'not BS' in mysubjects:}}{{=I('Sorry, have you tried setting your course to BS?')}}        
        {{else:}}{{=I('Sorry, the curriculum you specified is not yet supported.')}}
        {{pass}}    
    {{pass}}
 </div>
 <div id='tabs-4'>
     {{if type(mysubjects) != str:}}        
 See note below.        
    <table>
       <tr>
          <td>
             <tr>
                <th>Arts and Humanities</th>
                <th>Social Sciences and Philosophy</th>
                <th>Math, Science and Technology</th>
             <tr>
          </td>
       </tr>
       <tr>
          <td>
             <tr>
                <td>
                   <table>
                      <tr>
                         <th>Subject</th>
                      </tr>
                      {{for ge in non_ges['ah']:}}
                         {{=TR(TD(ge.ge.name,' ',INPUT(_value='Search', _type='button', _class='hidden search', _onclick="window.open('https://crs.upd.edu.ph/schedule/120111/" + ge.ge.name.replace(' ', '%20') + "')"), _class='subjects ge', _title=ge.ge.name +': '+ ge.ge.title + '|'+ge.ge.description))}}    
                      {{pass}}                                
                   </table>
                   * you need at least 15 units
                </td>
                <td>   
                   <table>
                      <tr>
                         <th>Subject</th>
                      </tr>
                      {{for ge in non_ges['ssp']:}}
                         {{=TR(TD(ge.ge.name,' ',INPUT(_value='Search', _type='button', _class='hidden search', _onclick="window.open('https://crs.upd.edu.ph/schedule/120111/" + ge.ge.name.replace(' ', '%20') + "')"), _class='subjects ge', _title=ge.ge.name +': '+ ge.ge.title + '|'+ge.ge.description))}}    
                      {{pass}}                                
                   </table>
                   * you need at least 15 units                            
                </td>
                <td>                        
                   <table>
                      <tr>
                         <th>Subject</th>
                      </tr>
                      {{for ge in non_ges['mst']:}}
                         {{=TR(TD(ge.ge.name,' ',INPUT(_value='Search', _type='button', _class='hidden search', _onclick="window.open('https://crs.upd.edu.ph/schedule/120111/" + ge.ge.name.replace(' ', '%20') + "')"), _class='subjects ge', _title=ge.ge.name +': '+ ge.ge.title + '|'+ge.ge.description))}}    
                      {{pass}}                                                                
                   </table>
                   * if EEE, you need at least 9 units
                </td>
             </tr>                                        
          </td>
       </tr>            
       <tr><td colspan=3><hr/></td></tr>            
          <tr>
             <td>
                <tr>
                   <th>Philippine Studies</th>
                   <th>English Communication</th>
                </tr>
             </td>
          </tr>
          <tr>
             <td>
                <tr>
                   <td>
                      <table>
                         <tr>
                            <th>Subject</th>
                         </tr>
                         {{for ge in non_ges['phil_stud']:}}
                            {{=TR(TD(ge.ge.name, _class='subjects'))}}    
                         {{pass}}
                      </table>
                      * you need at least 6 units                            
                   </td>
                   <td>
                      <table>
                         <tr>
                            <th>Subject</th>
                         </tr>
                         {{for ge in non_ges['english']:}}
                            {{=TR(TD(ge.ge.name, _class='subjects'))}}    
                         {{pass}}
                      </table>
                      * you need at least 9 units
                   </td>
                </tr>                                        
             </td>                
          </tr>            
       </table>
       <i>Note:</i>
       <ol>
       <li>EEE students are not allowed to take Math 1,Math 2, Physics 10,Chem 1,EEE 10,Nat Sci 1</li>
       <li>EEE students are highly discouraged from taking Kom 1,Kom 2 & Kom 3</li>
       <li>MajorGE L Arch 1 can be taken to fulfill GE requirement either AH, MST or SSP; can be credited only once.</li>
       <li>SuperGE SEA 30 can be taken to fulfill GE requirement either AH or SSP; can be credited only once.</li>
      </ol>
     {{else:}}
        {{if 'too old' in mysubjects:}}{{=I('Sorry, you are too old for this.')}}
        {{elif 'not BS' in mysubjects:}}{{=I('Sorry, have you tried setting your course to BS?')}}        
        {{else:}}{{=I('Sorry, the curriculum you specified is not yet supported.')}}
        {{pass}}
     {{pass}}      
  </div>  
</div>
{{else:}}
{{=I('Sorry we are not cool enough to make sense of what you just posted.', BR())}}
{{pass}}
{{pass}}
<script>
    $(function() {
        $( "#tabs" ).tabs();
    });
</script>
<br/>
<h4>About:</h4>
Another GWA Calculator is inspired by Payton Yao's {{=A('GWA Calculator', _href='http://www.upprogrammingguild.org/gwacalc.php')}} and John Benedict Lorenzo's {{=A('GWA Calculator', _href='https://www.facebook.com/notes/john-bennedict-lorenzo/crs-gwa-calculator/194750463878791')}}.<br/>
EEE Online Advising is inspired by Tyrone Tai's {{=A('EEE Advising', _href='http://www.eee.upd.edu.ph/eeeadvising')}}.<br/>
List of GE subjects can be found {{=A('here', _href='http://www.upd.edu.ph/~our/files/ListofRGEPCourses.pdf')}}.<br/>
The site do not and will not store any of your information. If unconvinced, see {{=A('this', _href='http://code.google.com/p/iskotool/source/browse/controllers/default.py')}}.<br/>
For interested developers, click {{=A('this', _href='https://code.google.com/p/iskotool/')}}.
<br/>
<br/>

<h4>Changelogs:</h4>
{{import time}}
{{for log in changelog:}}
    {{=I(log.timestamp.strftime('%B %d %Y' ))}}: {{=log.changelog}} <br/>
{{pass}}
<br/>

<h4>Disclaimer:</h4>
This should not be used in place of official documents pertaining to the student's academic performance nor should it be regarded as an authoritative guide on the student's curriculum.<sup>[patterned from {{=A('this', _href='https://crs.upd.edu.ph/viewgrades')}}]</sup><br/>
This has not been tested and will not be tested in Internet Explorer.<br/>
<br/>
<h4>Feedback:</h4>
In case you find errors on the output of this site or you want to request some features.<br/>
Just click the 'Comment' button and fill out the comment box below. I will try to address it as soon as possible.
<button onclick="jQuery('#contactme').slideToggle()">Comment</button>
<div id='contactme' class='hidden'>{{=contactme}}</div>
<script>jQuery('.hidden').hide();</script>
